<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>快餐店点餐系统</title>
    <style>
        body {
            font-family: "Arial", sans-serif;
            margin: 0;
            padding: 0;
            background: url('background.jpg') no-repeat center center fixed;
            background-size: cover;
            color: #fff;
        }

        .navbar {
            width: 100%;
            position: fixed;
            top: 0;
            left: 0;
            background-color: rgba(0, 0, 0, 0.7);
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
        }

        .navbar a {
            color: #ffffff;
            text-decoration: none;
            font-size: 16px;
            margin: 0 10px;
            padding: 5px 10px;
            border-radius: 5px;
        }

        .navbar a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column;
            text-align: center;
        }

        .card {
            background: rgba(0, 0, 0, 0.6);
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            max-width: 400px;
            margin: 20px;
        }

        .card h1 {
            color: #ff6f61;
            margin-bottom: 20px;
        }

        .card p {
            color: #ddd;
            font-size: 16px;
            margin-bottom: 20px;
        }

        .card a {
            display: inline-block;
            padding: 10px 20px;
            background-color: #ff6f61;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
        }

        .card a:hover {
            background-color: #ff5a4d;
        }
    </style>
</head>
<body>
<!-- 顶部导航栏 -->
<div class="navbar">
    <div>快餐店点餐系统</div>
    <div>
        <c:choose>
            <c:when test="${sessionScope.role == '2'}">
                <a href="admin.jsp">后台管理</a>
            </c:when>
        </c:choose>
        <c:choose>
            <c:when test="${empty sessionScope.username}">
                <a href="login.jsp">登录</a>
                <a href="register.jsp">注册</a>
            </c:when>
            <c:otherwise>
                <a href="userindex.jsp">个人中心</a>
                <a href="logout.jsp">退出</a>
            </c:otherwise>
        </c:choose>
    </div>
</div>

<!-- 主体内容 -->
<div class="container">
    <div class="card">
        <h1>欢迎来到快餐店点餐系统</h1>
        <p>轻松点餐，快速享受美味！</p>
    </div>
</div>
</body>
</html>
